<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div>p{
            color: blue;
        }
        div a{
            color: red;
        }
    </style>
</head>
<body>
    <div>
        <p>我是div的儿子</p>
        <span>
            <p>我是div的孙子</p>
        </span>
    </div>
    <div class="nav">
        <ul><a href="#">百度</a></ul>
        <ul><a href="#">百度</a></ul>

    </div>
</body>
</html>